﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="Backstage_index" %>

<!DOCTYPE html>

<html>

	<head>
		<meta charset="utf-8">
		<link href="css/public.css" type="text/css" rel="stylesheet">
		<link href="css/houtai.css" type="text/css" rel="stylesheet">
		<link href="css/smartMenu.css" type="text/css" rel="stylesheet">
		<title>后台管理系统</title>
	</head>

	<body>
		<div id="admin">
			<div class="ad-menu" id="ad-menu">
				<div class="ad-logo"><img src="images/icon.png" height="128" width="128"></div>
				<div class="ad-list" id="menuManager" runat="server">
					<!--动态获取菜单-->
				</div>
			</div>
			<div class="ad-comment-box" id="ad-comment">
				<div class="ad-top-comment">
					<div class="ad-message">
						<div class="ad-top-left">
							<div class="ad-change-btn">
								<a id="ad-list" href="javascript:;" class="scm ad-list-btn"></a>
							</div>
						</div>
						<div class="ad-top-right">
							<div class="ad-notice">
								<ul>
									<li>
										<a href="javascript:;" class="scm nt1"><span class="scm nt-count dot">0</span></a>
									</li>
									<li>
										<a href="javascript:;" class="scm nt2"><span class="scm nt-count dot">0</span></a>
									</li>
									<li>
										<a href="javascript:;" class="scm nt3"><span class="scm nt-count dot">0</span></a>
									</li>
								</ul>
							</div>
							<div class="ad-welcom">
								<div class="ad-wel-img"><img src="/Backstage/uploadImages/f2fe85e52963828e.jpg" height="36" width="36"></div>
								<div class="ad-wel-text">
									<div class="font-wel">欢迎您！<strong><%=getName()%></strong></div>
									<div class="font-wel">
										<a id="exitlink" href="#"><strong>【退出】</strong></a>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="ad-main-nav-box">
						<ul id="breadcrumbs-three">
							<li title="首页">
								<a href="javascript:;" class="dot">首页</a>
							</li>
						</ul>

						<div class="ad-main-wraper .J_menuItems">
							<ul class="ad-main-list" id="ad-main">
							</ul>
						</div>

					</div>
				</div>
				<div class="ad-main-comment J_mainContent" id="ad-iframe">
					<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="home.html" frameborder="0"></iframe>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/contabs.js"></script>
		<script type="text/javascript" src="js/maintabs.js"></script>
		<script type="text/javascript" src="js/jquery-smartMenu-min.js"></script>
		<script type="text/javascript" src="js/jquery.nicescroll.min.js"></script>
		<script type="text/javascript">
			$(function() {
				$(".ad-menu").niceScroll({
					cursorborder: "0 none",
					cursorcolor: "#1a1a19",
					cursoropacitymin: "0",
					boxzoom: false
				});
			})
			$('#exitlink').click(function() {
				$.ajax({
					type: 'POST',
					url: 'Pages/handle/exit.ashx',
					success: function(data) {
						var res = data.result;
						if(res == 111) {
							alert("退出成功");
						} else {
							alert("退出异常");
						}
						location.href = "index.aspx";
					},
					error: function() {
						alert("请求异常");
						location.href = "index.aspx";
					},
					dataType: "json"
				})
			});
			function errorPage() {
			    location.href = "/Backstage/error_page.html";
			}
		</script>
	</body>

</html>
